// Constructor

#include <iostream>
#include <cstring>
using namespace std;


class Human {
	public:
		Human( int age=0, const char* name="wuming" ) {	// Constructor
			this->age = age;
			strcpy( this->name, name );
			cout << "age : " << age << "\n" << "name : " << name << endl;
			cout << "The constructor has been called" << endl;
		}
	private:
		int age;
		char name[16];
};


// designer
// ------------------------------------------------------------------
// user


int main( void ) { 
	Human h( 22, "zhangfei" );
	cout << "The object h has been defined" << endl;

	return 0;
}

